export default {

  /**
   * 区域管理涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   *
   * 区域列表（无分页）
   * /assembly/sysdistrict/list
   * @param  {string}  districtName              区域名称
   * @param  {string}  districtCode              区域编号
   */
  "POST /assembly/sysdistrict/list":  (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40,
        },
        list: [{
          districtId: 1,
          parentId: 0,
          districtCode: '0001212',
          districtName: '浙江省',
          remarks:"---",
          parentName: null,
          sort:0,
        }, {
          districtId: 2,
          parentId: 1,
          districtCode: '0001212',
          districtName: '宁波市',
          remarks:"---",
          parentName: '浙江省',
          sort:1,
        }, {
          districtId: 3,
          parentId: 1,
          districtCode: '0001212',
          districtName: '杭州市',
          remarks:"111",
          parentName: '浙江省',
          sort:2,
        }, {
          districtId: 4,
          parentId: 3,
          districtCode: '0001212',
          districtName: '上城区',
          remarks:"---",
          parentName: '杭州市',
          sort:4,
        }, {
          districtId: 5,
          parentId: 3,
          districtCode: '0001212',
          districtName: '下城区',
          remarks:"---",
          parentName: '杭州市',
          sort:3,
        }, {
          districtId: 6,
          parentId: 0,
          districtCode: '0001212',
          districtName: '江苏省',
          remarks:"---",
          parentName: null,
          sort:5,
        }],
      },
    });
  },




  /**
   *
   * 新增区域
   * /assembly/sysdistrict/save
   * @param  {string}  districtCode 区域编号
   * @param  {string}  districtName 区域名称
   * @param  {string}  remarks      备注
   * @param  {string}  parentId     上级区域ID
   */
  "POST /assembly/sysdistrict/save": (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
    });
  },


  /**
   *
   * 编辑区域信息
   * /assembly/sysdistrict/update
   * @param  {string}  delFlag           是否删除
   * @param  {string}  districtId        当前区域id
   * @param  {string}  districtCode      区域编号
   * @param  {string}  districtName      区域名称
   * @param  {string}  parentId          备注
   * @param  {string}  parentId          父级别ID
   */
  "POST /assembly/sysdistrict/update": (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
    });
  },



  /**
   *
   * 删除区域
   * /assembly/sysdistrict/delete
   * @param  {array}  districtIds 区域编号
   */
  "POST /assembly/sysdistrict/delete": (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
    });
  },

};
